package com.amkai.aes.webservice.binary.objecthandler.inventory;

public abstract class PropertyHQLGenerator {
	protected String instanceName;
	protected String propertyName;
	protected ResolverServiceManager resolverMgr;
	
	public PropertyHQLGenerator(String instanceName, String propertyName, ResolverServiceManager resolverMgr) {
		this.instanceName = instanceName;
		this.propertyName = propertyName;
		this.resolverMgr = resolverMgr;
	}

	public abstract String getHQLFragment();

	public abstract Object getValueFromText(String searchText);

	public abstract String getHQLPropertyName();
	
	public String getAdditionalFetchHQL() {
		return "";
	}

	public Object resolveValue(Object valueToResolve) {
		return valueToResolve;
	}

}
